﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:Nok_Air"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="Nok_Air.Report"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait" FontFamily="/Nok Air;component/Fonts/Fonts.zip#PSL Display" FontSize="40">

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/MainViewModelSampleData.xaml}">
		<Grid.RowDefinitions>
			<RowDefinition Height="70"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="80"/>
		</Grid.RowDefinitions>
		<Grid Style="{StaticResource TopAppBarStyle}">
			<Grid.ColumnDefinitions>
				<ColumnDefinition  Width="1*"/> 		
				<ColumnDefinition  Width="2*"/> 		
				<ColumnDefinition  Width="1*"/> 		
			</Grid.ColumnDefinitions> 
			<Button x:Name="backButton" Content="Back" HorizontalAlignment="Left"  Width="130" Margin="15,0,0,0" Height="60" Style="{StaticResource BackButtonStyle}" Foreground="White" Visibility="Collapsed" />
			<TextBlock x:Name="Title_checkIn_TextBlock" Margin="0" TextWrapping="Wrap" Text="Report" FontSize="40" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Grid.Column="1" Visibility="Collapsed"/>
            <Button x:Name="continueButton" Content="{Binding Continue}" Style="{StaticResource BlueButtonStyle}" Margin="5,0" Click="continueButton_Click" Foreground="White" VerticalAlignment="Center" Grid.Column="2" FontSize="40" />
		</Grid>
        <Grid Style="{StaticResource ContentStyle}" Margin="0">
			<ScrollViewer Margin="10,10,10,0">
				<StackPanel Orientation="Vertical" Width="452">
					<!--<TextBlock Margin="0" TextWrapping="Wrap" Text="Depart" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="48" d:IsHidden="True"/>
					<StackPanel Orientation="Vertical" d:IsHidden="True">
						<TextBox TextWrapping="Wrap" Text="Flight No.DD8309&#xa;From     Bangkok&#xa;To         Chiang Mai&#xa;Date      Saptember 3, 2010&#xa;Time      09:05" Height="261" Foreground="Black"/>
					</StackPanel>
					<TextBlock HorizontalAlignment="Left" Margin="0" TextWrapping="Wrap" Text="Cost" Foreground="Black" d:IsHidden="True"/>
					<StackPanel Margin="8,0,0,0" d:IsHidden="True">
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<TextBlock TextWrapping="Wrap" Text="Return Cost" Foreground="Black" VerticalAlignment="Top" d:LayoutOverrides="Width"/>
							<TextBlock TextWrapping="Wrap" Text="3,190.00 THB" Foreground="Black" VerticalAlignment="Bottom" d:LayoutOverrides="Width" Grid.Column="1"/>
						</Grid>
					</StackPanel>
                    -->
                    <Grid Margin="0,0,8,0">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*"/>
							<ColumnDefinition Width="2*"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="*"/>
							<RowDefinition Height="*"/>
						</Grid.RowDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="{Binding Fee}" Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                        <StackPanel Grid.Column="1" Orientation="Horizontal">
                            <TextBlock TextWrapping="Wrap" Text="{Binding PricingV2Items.FeeTotalAmount}" Foreground="Red"  VerticalAlignment="Center" HorizontalAlignment="Left"/>
                            <TextBlock TextWrapping="Wrap" Text="{Binding MoneyUnit}" Foreground="Red"  VerticalAlignment="Center" HorizontalAlignment="Left"  Margin="5,0,0,0"/>
                        </StackPanel>
                        <TextBlock TextWrapping="Wrap" Text="{Binding PricingV2Items.FeeCodes.Description}" VerticalAlignment="Center" Grid.Row="1" HorizontalAlignment="Left" Foreground="Red" Grid.ColumnSpan="2"/>
					</Grid>
					<Grid>
						<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*"/>
								<ColumnDefinition Width="2*"/>
							</Grid.ColumnDefinitions>
                        <TextBlock TextWrapping="Wrap" Text="{Binding TotalAmount}" Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                        <StackPanel Grid.Column="1" Orientation="Horizontal">
                            <TextBlock TextWrapping="Wrap" Text="{Binding PricingV2Items.TotalAmount}" Foreground="Red"  VerticalAlignment="Center" HorizontalAlignment="Left"/>
                            <TextBlock TextWrapping="Wrap" Text="{Binding MoneyUnit}" Foreground="Red"  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
                        </StackPanel>
                    </Grid>
				
				
				
				</StackPanel>
			</ScrollViewer>
		</Grid>
		
		<Grid Grid.Row="2">
			<local:AppBarMenuUserControl/>
		</Grid>

        <Popup x:Name="progressbar" IsOpen="True">
            <Popup.Child>
                <local:ProgressBarUserControl/>
            </Popup.Child>
        </Popup>
    </Grid>
</phone:PhoneApplicationPage>